/**Created by the LayaAirIDE*/
module view.dlg{
	export class SignPrize extends ui.dlg.SignPrizeUI{
		constructor(signDay:number,weekNum:number,tableC:number){
			super();
			
			if (tableC == 0){
				//签到奖励表
				this.jingping.skin = "item/" + Cfg.Sign[weekNum*7 +signDay]["pictureName"] + ".png";
				// this.jingping.skin = "item/qiezi.png";
				this.prizeMum.text = "X" + Cfg.Sign[weekNum*7 +signDay]["num"];
				this.jingping.visible = true;
				this.prizeMum.visible = true;
			}else if (tableC == 1){
				//头上的累计签到礼盒表
				// this.jingping.skin = "item/" + Cfg.Sign[signDay]["pictureName"] + ".png";
				for(let i = 0;i< Cfg.Rsign[signDay]["num"].length;i++){
					let box:Laya.Box = this.leiji.getChildByName("item"+i) as Laya.Box;
					let jiangli:Laya.Image = box.getChildByName("jiangli") as Laya.Image;
					let rsignText:Laya.Label = box.getChildByName("rsignText") as Laya.Label;
					 jiangli.skin = "item/" + Cfg.Rsign[signDay]["pictureName"][i] + ".png"
					// jiangli.skin = "item/qiezi.png";					
					rsignText.text = "X" + Cfg.Rsign[signDay]["num"][i];
					jiangli.visible = true;
					jiangli.scaleX = 1.5;
					jiangli.scaleY = 1.5;
					rsignText.color = "#ecda0b";
					rsignText.fontSize = 40;
					rsignText.visible = true;

				}
			}
		}
	}
}